package cn.starrysky108.simpleerp.pub.controller;

import cn.starrysky108.simpleerp.core.base.BaseResponseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公共Api
 *
 * @author Carl Lee
 */
@RestController
@Api(tags = "公共服务接口")
@RequestMapping("/pub")
public class PubController {
    @GetMapping("/check_net")
    @ApiOperation("检查服务器是否可连接")
    public BaseResponseEntity<Boolean> checkNet() {
        return BaseResponseEntity.success(true);
    }
}
